<?php
require_once("vcl/vcl.inc.php");
require_once("lib/db_connection.php");
//Includes
use_unit("forms.inc.php");
use_unit("extctrls.inc.php");
use_unit("stdctrls.inc.php");

//Class definition
class tire_delete extends Page
{
       public $hiddenTire = null;
       function tire_deleteCreate($sender, $params)
       {
       $tire_id=$_GET['tire_id'];
       $this->hiddenTire->setValue($tire_id);

       $result = mysql_query("delete from tire_inventory_tbl where tire_id='".$this->hiddenTire->getValue()."'");
       redirect('tire_list.php?company_id='.$_SESSION['company_id']);


       }

}

global $application;

global $tire_delete;

//Creates the form
$tire_delete=new tire_delete($application);

//Read from resource file
$tire_delete->loadResource(__FILE__);

//Shows the form
$tire_delete->show();

?>